home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 38 / Amiga Format CD38 (1999-03-15)(Future Publishing)(GB)(Track 1 of 3)[!][issue 1999-04].iso / -in_the_mag- / reader_requests / dice_v3.15 / lib / fd / creat.c < prev    next >
C/C++ Source or Header  |  1999-01-26  |  451b  |  26 lines

  1.  
  2. /*
  3.  *  CREAT.C
  4.  *
  5.  *    (c)Copyright 1992-1997 Obvious Implementations Corp.  Redistribution and
  6.  *    use is allowed under the terms of the DICE-LICENSE FILE,
  7.  *    DICE-LICENSE.TXT.
  8.  *
  9.  *  creat(name, prot)   (prot ignored)
  10.  */
  11.  
  12. #include <fcntl.h>
  13.  
  14. #ifndef UnixToAmigaPath
  15. #define UnixToAmigaPath(path)   path
  16. #endif
  17.  
  18. int
  19. creat(name, mode)
  20. const char *name;
  21. int mode;
  22. {
  23.     return(open(UnixToAmigaPath(name), O_CREAT | O_TRUNC | O_RDWR, mode));
  24. }
  25.  
  26.